using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Booky.DataStorage
{
    [Serializable]
    public class User
    {
        public ObjectId Id { get; set; }        
        public string Username { get; set; }
        public string PasswordHash { get; set; }
        public string DisplayName { get; set; }
        public string Location { get; set; }
        public string Web { get; set; }
        public string Bio { get; set; }
        public string Email { get; set; }
        public string DtCreatedOn { get; set; }
        public bool IsActive { get; set; }
        public string MainProfileImage { get; set; }
        [BsonDateTimeOptions(DateOnly = true)]
        public DateTime CreatedOn { get; set; }
    }
}